package com.xyw.code.efficient_programming.lambda.io;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class SocketDemo {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(8000);
        Socket socket = serverSocket.accept();
        socket.shutdownInput();
    }
}
